package com.hongyi.mapper;
;
import com.hongyi.pojo.Order;
import com.hongyi.vo.OrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: hongyi
 * @CreateTime: 2024-08-28
 */


@Mapper
public interface OrderMapper {
    List<OrderVo> findAll();

    List<Order> getByUserId(@Param("userId") Long id);

    /**
     getOrderUserIds1和getOrderUserIds都是可以使用的用那个都可以的
     */

    List<Order> getOrderUserIds(@Param("userIds") List<Long> userIds);
    List<Order> getOrderUserIds1(List<Long> userIds);

}
